import { createStore, applyMiddleware } from "redux";
import thunk from 'redux-thunk'
import  { composeWithDevTools  } from  'redux-devtools-extension'
import reducers from "./reducers";
import { getToken } from "@/utils/token";
// const initialState = {
//     login: getToken()
// }
const store = createStore(reducers, composeWithDevTools(applyMiddleware(thunk)) )
export default store